package coop.tecso.test.objets.complex;

//src/gen
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 *
 */
@Entity
@Table(name = "MANIFEST_TOTAL")
public class ManifestTotal implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "MANIFEST_TOTAL_SEQ")
	@SequenceGenerator(name = "MANIFEST_TOTAL_SEQ", sequenceName = "MANIFEST_TOTAL_SEQ", allocationSize = 1)
	@Column(name = "MANIFEST_TOTAL_ID", nullable = false)
	private int id;
	@Version
	@Column(name = "VERSION")
	private int manifestTotalversion;

	/**
	 *
	 */
	@Column(name = "OWN_COUPONS", length = 3)
	private Integer ownCoupons;

	/**
	 *
	 */
	@Column(name = "OAL_COUPONS", length = 3)
	private Integer oalCoupons;

	/**
	 *
	 */
	@Column(name = "OWN_TOTAL_PAPER", length = 4)
	private Integer ownTotalPaper;

	/**
	 *
	 */
	@Column(name = "OWN_TOTAL_ETKT", length = 4)
	private Integer ownTotalEtkt;

	/**
	 *
	 */
	@Column(name = "INTERLINE_TOTAL_PAPER", length = 4)
	private Integer interlineTotalPaper;

	/**
	 *
	 */
	@Column(name = "INTERLINE_TOTAL_ETKT", length = 4)
	private Integer interlineTotalEtkt;

	/**
	 *
	 */
	@Column(name = "TRANSIT")
	private Integer transit;

	/**
	 *
	 */
	@Column(name = "ADULT", length = 4)
	private Integer adult;

	/**
	 *
	 */
	@Column(name = "CHILD", length = 4)
	private Integer child;

	/**
	 *
	 */
	@Column(name = "INFANT", length = 4)
	private Integer infant;

	/**
	 *
	 */
	@Column(name = "MCO")
	private Integer mco;

	/**
	 *
	 */
	@Column(name = "XSB")
	private Integer xsb;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_USER", length = 255)
	private String tecCreationUser;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_TIMESTAMP")
	private java.sql.Timestamp tecCreationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_TIMESTAMP")
	private java.sql.Timestamp tecModificationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_USER", length = 255)
	private String tecModificationUser;

	/**
	 *
	 */
	@Column(name = "TEC_DELETED")
	private Boolean tecDeleted;

	/**
	 *
	 */
	@ManyToOne(targetEntity = CouponUsed.class, fetch = FetchType.LAZY)
	@JoinColumns({ @JoinColumn(name = "COUPON_USED_FK", referencedColumnName = "COUPON_USED_ID") })
	private CouponUsed coupon_used;

	/**
	 *
	 */
	@OneToOne(targetEntity = Manifest.class, optional = false, fetch = FetchType.LAZY)
	@JoinColumns({ @JoinColumn(name = "MANIFEST_FK", referencedColumnName = "MANIFEST_ID", nullable = false) })
	private Manifest manifest;

	public ManifestTotal() {
	}

	// Constructor for primary key
	public ManifestTotal(int id) {
		this.id = id;
	}

	/**
	 * Autogenerated key
	 */
	public int getId() {
		return id;
	}

	public int getManifestTotalversion() {
		return manifestTotalversion;
	}

	public void setManifestTotalversion(int manifestTotalversion) {
		this.manifestTotalversion = manifestTotalversion;
	}

	public Integer getOwnCoupons() {
		return ownCoupons;
	}

	public void setOwnCoupons(Integer ownCoupons) {
		this.ownCoupons = ownCoupons;
	}

	public Integer getOalCoupons() {
		return oalCoupons;
	}

	public void setOalCoupons(Integer oalCoupons) {
		this.oalCoupons = oalCoupons;
	}

	public Integer getOwnTotalPaper() {
		return ownTotalPaper;
	}

	public void setOwnTotalPaper(Integer ownTotalPaper) {
		this.ownTotalPaper = ownTotalPaper;
	}

	public Integer getOwnTotalEtkt() {
		return ownTotalEtkt;
	}

	public void setOwnTotalEtkt(Integer ownTotalEtkt) {
		this.ownTotalEtkt = ownTotalEtkt;
	}

	public Integer getInterlineTotalPaper() {
		return interlineTotalPaper;
	}

	public void setInterlineTotalPaper(Integer interlineTotalPaper) {
		this.interlineTotalPaper = interlineTotalPaper;
	}

	public Integer getInterlineTotalEtkt() {
		return interlineTotalEtkt;
	}

	public void setInterlineTotalEtkt(Integer interlineTotalEtkt) {
		this.interlineTotalEtkt = interlineTotalEtkt;
	}

	public Integer getTransit() {
		return transit;
	}

	public void setTransit(Integer transit) {
		this.transit = transit;
	}

	public Integer getAdult() {
		return adult;
	}

	public void setAdult(Integer adult) {
		this.adult = adult;
	}

	public Integer getChild() {
		return child;
	}

	public void setChild(Integer child) {
		this.child = child;
	}

	public Integer getInfant() {
		return infant;
	}

	public void setInfant(Integer infant) {
		this.infant = infant;
	}

	public Integer getMco() {
		return mco;
	}

	public void setMco(Integer mco) {
		this.mco = mco;
	}

	public Integer getXsb() {
		return xsb;
	}

	public void setXsb(Integer xsb) {
		this.xsb = xsb;
	}

	public String getTecCreationUser() {
		return tecCreationUser;
	}

	public void setTecCreationUser(String tecCreationUser) {
		this.tecCreationUser = tecCreationUser;
	}

	public java.sql.Timestamp getTecCreationTimestamp() {
		return tecCreationTimestamp;
	}

	public void setTecCreationTimestamp(java.sql.Timestamp tecCreationTimestamp) {
		this.tecCreationTimestamp = tecCreationTimestamp;
	}

	public java.sql.Timestamp getTecModificationTimestamp() {
		return tecModificationTimestamp;
	}

	public void setTecModificationTimestamp(java.sql.Timestamp tecModificationTimestamp) {
		this.tecModificationTimestamp = tecModificationTimestamp;
	}

	public String getTecModificationUser() {
		return tecModificationUser;
	}

	public void setTecModificationUser(String tecModificationUser) {
		this.tecModificationUser = tecModificationUser;
	}

	public Boolean getTecDeleted() {
		return tecDeleted;
	}

	public void setTecDeleted(Boolean tecDeleted) {
		this.tecDeleted = tecDeleted;
	}

	public CouponUsed getCoupon_used() {
		return coupon_used;
	}

	public void setCoupon_used(CouponUsed coupon_used) {
		this.coupon_used = coupon_used;
	}

	public Manifest getManifest() {
		return manifest;
	}

	public void setManifest(Manifest manifest) {
		this.manifest = manifest;
	}
}
